﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using cnFederal.FaCode;

namespace cnFederal.Controls
{
    public partial class LatinShortNews : System.Web.UI.UserControl
    {
        List<FaPost> _postList;
        public LatinShortNews()
        {
            FaPosts.Load();
            _postList = FaPosts.GetLatinShortNewsByNymber(10);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ListViewStrip.Items.Clear();
            ListViewStrip.DataSource = _postList;
            ListViewStrip.DataBind();
        }

        public System.Drawing.Color GetRowColor(int index)
        {
            return CnfiFunctions.GetRowColor(index);
        }
    }
}